﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D67 RID: 3431
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PromoteEquipmentScRsp : IMessage<PromoteEquipmentScRsp>, IMessage, IEquatable<PromoteEquipmentScRsp>, IDeepCloneable<PromoteEquipmentScRsp>, IBufferMessage
	{
		// Token: 0x17002B84 RID: 11140
		// (get) Token: 0x060099F1 RID: 39409 RVA: 0x0019B22C File Offset: 0x0019942C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PromoteEquipmentScRsp> Parser
		{
			get
			{
				return PromoteEquipmentScRsp._parser;
			}
		}

		// Token: 0x17002B85 RID: 11141
		// (get) Token: 0x060099F2 RID: 39410 RVA: 0x0019B233 File Offset: 0x00199433
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PromoteEquipmentScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002B86 RID: 11142
		// (get) Token: 0x060099F3 RID: 39411 RVA: 0x0019B245 File Offset: 0x00199445
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PromoteEquipmentScRsp.Descriptor;
			}
		}

		// Token: 0x060099F4 RID: 39412 RVA: 0x0019B24C File Offset: 0x0019944C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PromoteEquipmentScRsp()
		{
		}

		// Token: 0x060099F5 RID: 39413 RVA: 0x0019B254 File Offset: 0x00199454
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PromoteEquipmentScRsp(PromoteEquipmentScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060099F6 RID: 39414 RVA: 0x0019B279 File Offset: 0x00199479
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PromoteEquipmentScRsp Clone()
		{
			return new PromoteEquipmentScRsp(this);
		}

		// Token: 0x17002B87 RID: 11143
		// (get) Token: 0x060099F7 RID: 39415 RVA: 0x0019B281 File Offset: 0x00199481
		// (set) Token: 0x060099F8 RID: 39416 RVA: 0x0019B289 File Offset: 0x00199489
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060099F9 RID: 39417 RVA: 0x0019B292 File Offset: 0x00199492
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PromoteEquipmentScRsp);
		}

		// Token: 0x060099FA RID: 39418 RVA: 0x0019B2A0 File Offset: 0x001994A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PromoteEquipmentScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060099FB RID: 39419 RVA: 0x0019B2D0 File Offset: 0x001994D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060099FC RID: 39420 RVA: 0x0019B30F File Offset: 0x0019950F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060099FD RID: 39421 RVA: 0x0019B317 File Offset: 0x00199517
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060099FE RID: 39422 RVA: 0x0019B320 File Offset: 0x00199520
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060099FF RID: 39423 RVA: 0x0019B354 File Offset: 0x00199554
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009A00 RID: 39424 RVA: 0x0019B392 File Offset: 0x00199592
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PromoteEquipmentScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009A01 RID: 39425 RVA: 0x0019B3C3 File Offset: 0x001995C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009A02 RID: 39426 RVA: 0x0019B3CC File Offset: 0x001995CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003B44 RID: 15172
		private static readonly MessageParser<PromoteEquipmentScRsp> _parser = new MessageParser<PromoteEquipmentScRsp>(() => new PromoteEquipmentScRsp());

		// Token: 0x04003B45 RID: 15173
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003B46 RID: 15174
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04003B47 RID: 15175
		private uint retcode_;
	}
}
